package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorAdvertisingPush;

public interface OperatorAdvertisingPushRepository extends JpaRepository<OperatorAdvertisingPush, String>, JpaSpecificationExecutor<OperatorAdvertisingPush> {
	public List<OperatorAdvertisingPush> findByCityId(@Param("cityId") String cityId);
	public List<OperatorAdvertisingPush> findByCityIdAndPushSwitch(@Param("cityId") String cityId, @Param("pushSwitch") String pushSwitch);

}
